package com.gzp.config;

import javax.jms.Queue;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 队列配置类
 * 
 * @author Administrator
 *
 */
@Configuration
public class QueueConfig {

	@Value("${myqueue}")
	private String myqueue;

	@Bean
	public Queue queue() {
		return new ActiveMQQueue(myqueue);
	}
}
